﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace AsyncPersistence.Entities
{
    public class Client : PersistableEntity
    {
        #region Properties
        public string FirstName { get; set; }
        public string LastName { get; set; }
        public double Salary { get; set; }
        #endregion

        #region Constructors
        public Client() { }

        public Client(string firstName, string lastName, double salary)
            : base(System.Threading.Interlocked.Increment(ref Ticks))
        {
            FirstName = firstName;
            LastName = lastName;
            Salary = salary;
        }
        #endregion
    }
}
